第6步:让我们使用参数名称 theme 来设置背景。

我们定义函数时的第三个参数名称theme调用函数时的第三个参数"summer"。当函数此次运行时, theme 将具有值 "summer"

  • 将背景中的图像更改为 theme
  • 点击 运行 以查看控制台上出现的"summer"背景图像。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)